/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.stream.IntStream;

/**
 * <p>Project: jse2302 - Ex01
 * <p>Powered by webrx On 2023-06-28 17:28:26
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex01 {
    public static void main(String[] args) {
        IntStream is = IntStream.rangeClosed(1,100);
        //long count = is.count();
        //System.out.println(count);
        int sum = is.sum();
        System.out.println(sum);

        System.out.println(IntStream.rangeClosed(1,100).sum());
        System.out.println(50*101);
    }
}
